package course.experiment2.num5;

public class Human {
    private String surName;
    private String givenName;
    private String nationNal;

    public Human(String surName, String givenName, String nationNal) {
        this.surName = surName;
        this.givenName = givenName;
        this.nationNal = nationNal;
    }

    public Human(String surName, String givenName) {
        this(surName, givenName, "unknown");
    }

    public Human() {
        this("unknown", "unknown");
    }

    public void showNamelnNativeLanguage() {
        System.out.println("Nationnality: " + this.nationNal);
    }

    public String getSurName() {
        return surName;
    }

    public void setSurName(String surName) {
        this.surName = surName;
    }

    public String getGivenName() {
        return givenName;
    }

    public void setGivenName(String givenName) {
        this.givenName = givenName;
    }

    public String getNationNal() {
        return nationNal;
    }

    public void setNationNal(String nationNal) {
        this.nationNal = nationNal;
    }
}
